$(document).ready(function () {
    $("#btnConfirm").click(function(){
    	$("#addValidationPostForm").submit(function(){
    		//验证类型
    		var publish_post_sinfoId = $("#publish_post_sinfoId").val();
    		if(""==publish_post_sinfoId || "0"==publish_post_sinfoId || null==publish_post_sinfoId){
    			alert("找不到对应的龙凤");
    			return false;
    		}
    		var sinfoPublishTitle =$("#sinfoPublishTitle").val(); 
    		if(null == sinfoPublishTitle || ""==sinfoPublishTitle){
    			alert("验证贴标题必须填写");
    			return false;
    		}
    		/*var sinfoPublishPhone = $("#sinfoPublishPhone").val();
    		var sinfoPublishQQ = $("#sinfoPublishQQ").val();
    		var sinfoPublishEmail = $("#sinfoPublishEmail").val();
    		if((null == sinfoPublishPhone || ""==sinfoPublishPhone) && (null == sinfoPublishQQ || ""==sinfoPublishQQ) && (null == sinfoPublishEmail || ""==sinfoPublishEmail)){
    			alert("电话,QQ,邮件不能都不填写");
    			return false;
    		}*/
    		
    		
    		var validationDate = $("#validationDate").val();
    		if(null == validationDate || ""==validationDate){
    			alert("验证日期必须填写!");
    			return false;
    		}
    		/*var imgs = $(document.getElementById('ueditor_0').contentWindow.document.body).find("img");
    		var img="";
    		imgs.each(function(){
    			var temp= $(this).attr("src");
    			if(temp!= undefined && ""!=temp){
    				if(""==img){
    					img = temp;
    				}else{
    					img = img+","+temp;
    				}
    			}			
    		});
    		//alert(img);
    		if(img != undefined && ""!=img){
    			$("#sifno_images").val(img);
    		}*/
    		//if(){}
    		return true;
    	}).submit();
    });
 });